package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * PeisPatientWbpRecorderId entity. @author MyEclipse Persistence Tools
 */

public class PeisPatientWbpRecorderId implements java.io.Serializable {

	// Fields

	private Integer id;
	private Timestamp recorderDate;
	private String recorderTime;
	private String weight;
	private String bloodpressure;
	private String pulse;
	private String memo;
	private String loginName;
	private Timestamp createTime;
	private Integer idPatient;

	// Constructors

	/** default constructor */
	public PeisPatientWbpRecorderId() {
	}

	/** minimal constructor */
	public PeisPatientWbpRecorderId(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public PeisPatientWbpRecorderId(Integer id, Timestamp recorderDate,
			String recorderTime, String weight, String bloodpressure,
			String pulse, String memo, String loginName, Timestamp createTime,
			Integer idPatient) {
		this.id = id;
		this.recorderDate = recorderDate;
		this.recorderTime = recorderTime;
		this.weight = weight;
		this.bloodpressure = bloodpressure;
		this.pulse = pulse;
		this.memo = memo;
		this.loginName = loginName;
		this.createTime = createTime;
		this.idPatient = idPatient;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Timestamp getRecorderDate() {
		return this.recorderDate;
	}

	public void setRecorderDate(Timestamp recorderDate) {
		this.recorderDate = recorderDate;
	}

	public String getRecorderTime() {
		return this.recorderTime;
	}

	public void setRecorderTime(String recorderTime) {
		this.recorderTime = recorderTime;
	}

	public String getWeight() {
		return this.weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}

	public String getBloodpressure() {
		return this.bloodpressure;
	}

	public void setBloodpressure(String bloodpressure) {
		this.bloodpressure = bloodpressure;
	}

	public String getPulse() {
		return this.pulse;
	}

	public void setPulse(String pulse) {
		this.pulse = pulse;
	}

	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Integer getIdPatient() {
		return this.idPatient;
	}

	public void setIdPatient(Integer idPatient) {
		this.idPatient = idPatient;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PeisPatientWbpRecorderId))
			return false;
		PeisPatientWbpRecorderId castOther = (PeisPatientWbpRecorderId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getRecorderDate() == castOther.getRecorderDate()) || (this
						.getRecorderDate() != null
						&& castOther.getRecorderDate() != null && this
						.getRecorderDate().equals(castOther.getRecorderDate())))
				&& ((this.getRecorderTime() == castOther.getRecorderTime()) || (this
						.getRecorderTime() != null
						&& castOther.getRecorderTime() != null && this
						.getRecorderTime().equals(castOther.getRecorderTime())))
				&& ((this.getWeight() == castOther.getWeight()) || (this
						.getWeight() != null
						&& castOther.getWeight() != null && this.getWeight()
						.equals(castOther.getWeight())))
				&& ((this.getBloodpressure() == castOther.getBloodpressure()) || (this
						.getBloodpressure() != null
						&& castOther.getBloodpressure() != null && this
						.getBloodpressure()
						.equals(castOther.getBloodpressure())))
				&& ((this.getPulse() == castOther.getPulse()) || (this
						.getPulse() != null
						&& castOther.getPulse() != null && this.getPulse()
						.equals(castOther.getPulse())))
				&& ((this.getMemo() == castOther.getMemo()) || (this.getMemo() != null
						&& castOther.getMemo() != null && this.getMemo()
						.equals(castOther.getMemo())))
				&& ((this.getLoginName() == castOther.getLoginName()) || (this
						.getLoginName() != null
						&& castOther.getLoginName() != null && this
						.getLoginName().equals(castOther.getLoginName())))
				&& ((this.getCreateTime() == castOther.getCreateTime()) || (this
						.getCreateTime() != null
						&& castOther.getCreateTime() != null && this
						.getCreateTime().equals(castOther.getCreateTime())))
				&& ((this.getIdPatient() == castOther.getIdPatient()) || (this
						.getIdPatient() != null
						&& castOther.getIdPatient() != null && this
						.getIdPatient().equals(castOther.getIdPatient())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37
				* result
				+ (getRecorderDate() == null ? 0 : this.getRecorderDate()
						.hashCode());
		result = 37
				* result
				+ (getRecorderTime() == null ? 0 : this.getRecorderTime()
						.hashCode());
		result = 37 * result
				+ (getWeight() == null ? 0 : this.getWeight().hashCode());
		result = 37
				* result
				+ (getBloodpressure() == null ? 0 : this.getBloodpressure()
						.hashCode());
		result = 37 * result
				+ (getPulse() == null ? 0 : this.getPulse().hashCode());
		result = 37 * result
				+ (getMemo() == null ? 0 : this.getMemo().hashCode());
		result = 37 * result
				+ (getLoginName() == null ? 0 : this.getLoginName().hashCode());
		result = 37
				* result
				+ (getCreateTime() == null ? 0 : this.getCreateTime()
						.hashCode());
		result = 37 * result
				+ (getIdPatient() == null ? 0 : this.getIdPatient().hashCode());
		return result;
	}

}